# from time import sleep
#
# import uiautomator2 as u2
#
# d=u2.connect_usb()
# d.app_start("com.yishouapp.fumi")
# sleep(2)
# try:
#     d.xpath.click('//*[@text="主"]')
# except Exception as e:
#     print("异常抛出")
#     d.screenshot("error.png")
#     # d.xpath.click('//*[@text="主站"]')

import requests
session=requests.session()
#钱包-返现记录
params1={'app_code': '0', 'model': 'iPhone%208%20Plus', 'pageindex': '1', 'pagesize': '10', 'plat_type': 'iOS', 't_t': '1649760888', 'token': 'd6c478c2c2489efea0beadbd5fa4d8b1', 'type': 'red_packet', 'udid': '3415743D-99AD-49D6-979B-87E92C0BF5E3', 'uid': '5153750', 'version': '14.400000', 'version_name': '7.14.1'}
res1=session.post("http://test15.yishou.com/api/users/get_moneyDetail_list",data=params1)
print(res1.text)

#钱包-提现记录
params2={'app_code': '0', 'model': 'iPhone%208%20Plus', 'pageindex': '1', 'pagesize': '10', 'plat_type': 'iOS', 't_t': '1649761382', 'token': '03f4b4485d18647a55c785ecac11bc28', 'type': 'out_cash', 'udid': '3415743D-99AD-49D6-979B-87E92C0BF5E3', 'uid': '5153750', 'version': '14.400000', 'version_name': '7.14.1'}
res=session.post('http://test15.yishou.com/api/users/get_moneyDetail_list',data=params2)

#钱包-订单退款-商品退款
params3={'app_code': '0', 'model': 'iPhone%208%20Plus', 'pageindex': '1', 'pagesize': '10', 'plat_type': 'iOS', 't_t': '1649761562', 'token': '6502af2f055114ee87b62361342fa502', 'type': 'goods_refund', 'udid': '3415743D-99AD-49D6-979B-87E92C0BF5E3', 'uid': '5153750', 'version': '14.400000', 'version_name': '7.14.1'}
res=session.post("http://test15.yishou.com/api/users/get_moneyDetail_list",data=params3)

#钱包-订单退款-订单退款
params4={'app_code': '0', 'model': 'iPhone%208%20Plus', 'pageindex': '1', 'pagesize': '10', 'plat_type': 'iOS', 't_t': '1649761724', 'token': '692d7f94c4d2f692e3860c73bc778674', 'type': 'shipping_fee_refund', 'udid': '3415743D-99AD-49D6-979B-87E92C0BF5E3', 'uid': '5153750', 'version': '14.400000', 'version_name': '7.14.1'}
res3=session.post("http://test15.yishou.com/api/users/get_moneyDetail_list",data=params4)

#钱包-支付记录
params4={'app_code': '0', 'model': 'iPhone%208%20Plus', 'page': '1', 'plat_type': 'iOS', 't_t': '1649761793', 'token': '30a0e56aa576a97357d3dd980ecc930e', 'udid': '3415743D-99AD-49D6-979B-87E92C0BF5E3', 'uid': '5153750', 'version': '14.400000', 'version_name': '7.14.1'}
res4=session.post("http://test15.yishou.com/api/users/get_pay_record",data=params4)
#钱包
params5={'app_code': '0', 'model': 'iPhone%208%20Plus', 'plat_type': 'iOS', 't_t': '1649937285', 'token': '0ce57902d0161a2b371c880ad6f04c1d', 'udid': '3415743D-99AD-49D6-979B-87E92C0BF5E3', 'uid': '5153751', 'version': '14.400000', 'version_name': '7.14.2'}
res=session.post("http://test15.yishou.com/api/activity/getMoneyBrand",data=params5)
print(res.text)